package mt.dummy;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;

import java.util.LinkedList;

import mt.Order;

import org.junit.Test;

public class MicroTraderServerDummyTest {
	
	MicroTraderServerDummy mtsd = new MicroTraderServerDummy();


	@Test
	public void testStart() {
		ServerCommDummy sc = new ServerCommDummy();
		assertNotNull(mtsd);
		assertNotNull(sc);
		mtsd.start(sc);
		Order o = Order.createBuyOrder("Andre", "Int", 300, 20);
		sc.clientIsConnected("Andre");
		sc.sendOrder("Andre", o);
		sc.disconnectClient("Andre");
//		mtsd.stop();
	}

	@Test
	public void testTrySellOrder() {
		fail("Not yet implemented");
	}

	@Test
	public void testTryBuyOrder() {
		fail("Not yet implemented");
	}

	@Test
	public void testSendAllOrders() {
		fail("Not yet implemented");
	}

	@Test
	public void testDisconnectClient() {
		fail("Not yet implemented");
	}

}
